const { Map,is } = require('immutable');
/* let state = { counter: Map({number:0}) }
let newCounter = state.counter.set('number',0);
console.log(state.counter=== newCounter)
 */

const map1 = Map({ a: 1, b: 1, c: 1 })
const map2 = Map({ a: 1, b: 1, c: 1 })
//内存地址肯定是不一样，因为是两个Immutable对象
console.log(map1 === map2)
//可以实现类似于深比较的效果
console.log(is(map1, map2))


let oldProps = {
    counter:{name:1}
}
let newProps = {
    counter:{name:1}
}